// import { initGlobalState, MicroAppStateActions } from 'qiankun'

// interface IState {
//   userId: number
// }

// type IAction = MicroAppStateActions & { getGlobalState: (key: keyof IState) => void }

// const initialState: Partial<IState> = { userId: 0 }
// const actions = initGlobalState(initialState) as IAction
// actions.getGlobalState = key => (key ? initialState[key] : initialState)

// export default actions
// micro-app-main/src/shared/actions.ts
import { initGlobalState, MicroAppStateActions } from "qiankun";

const initialState = {};
const actions: MicroAppStateActions = initGlobalState(initialState);

export default actions;
